<?php

/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Sitepageinvite
 * @copyright  Copyright 2010-2011 BigStep Technologies Pvt. Ltd.
 * @license    http://www.socialengineaddons.com/license/
 * @version    $Id: Aollogin.php 2011-05-05 9:40:21Z SocialEngineAddOns $
 * @author     SocialEngineAddOns
 */
class Sitepageinvite_Form_Aollogin extends Engine_Form {
	
	public function init() {
		// Init form
		$this->setTitle ( 'Aol Sign In' );
		$this->loadDefaultDecorators ();
		$email = Zend_Registry::get ( 'Zend_Translate' )->_ ( 'Username or Email' );
		// Init email
		$this->addElement ( 'Text', 'email', array ('label' => $email, 'required' => true, 'allowEmpty' => false, 'filters' => array ('StringTrim' ), 'validators' => array ('EmailAddress' ), 'tabindex' => 1 ) );
		
		$password = Zend_Registry::get ( 'Zend_Translate' )->_ ( 'Password' );
		// Init password
		$this->addElement ( 'Password', 'password', array ('label' => $password, 'required' => true, 'allowEmpty' => false, 'tabindex' => 2, 'filters' => array ('StringTrim' ) ) );
		
		// Init submit
		$this->addElement ( 'Button', 'submit', array ('label' => 'Sign In', 'type' => 'submit', 'ignore' => true, 'tabindex' => 5 ) );
	}

}

?>